﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ane.JobApps.Models
{
    public class ProfileRepository
    {
        private JobAppsDataContext mJobAppsDataContext = new JobAppsDataContext();

        public Profile GetCurrentProfile(string name)
        {
            return mJobAppsDataContext.Profiles.SingleOrDefault(p=>p.Name.Trim().ToLower()==name.Trim().ToLower());  
        }
    }
}